#!/usr/bin/env bash

source ./init.sh

case "$1" in
	dns)
		set_dns
		;;
	timezone)
		server_fix_timezone ${TIMEZONE}
		;;
	upgrade)
		server_upgrade
		;;
	prepare|init)
		server_prepare
		setver_require_install
		;;
	clean)
		server_clean
		;;
	*)
		echo "./server.sh {init|prepare|timezone|upgrade|clean}"
		;;
esac

on_tail